<template>
    <div>
          <!-- 头部右侧充值，登录end--->
        <!-- 登录弹窗 -->
        <el-dialog v-model="dialogVisible" :close-on-press-escape="false" :close-on-click-modal="false"
            style="border-radius: 16px !important;" width="500">
            <div class="login three-login clearfix">
                <div class="normal">
                    <div class="login-style-contant normal-login">
                        <div class="tab-normal-mode clearfix">
                            <a class="active">手机号登录</a>
                            <!-- <a>用户注册</a> -->
                        </div>
                        <div class="login-from" data-login-switch="normal">
                            <!-- 国际区号 -->
                            <label for="">
                                <div class="intl-tel-input allow-dropdown separate-dial-code iti-sdc-3">
                                    <input type="tel" class="area-code monitor-input1" v-model="ruleForm.mobile"
                                        placeholder="请输入手机号" maxlength="40" autocomplete="off">
                                </div>
                            </label>
                            <!-- 用户密码 -->
                            <label for="" class="login-password" v-if="ruleForm.passwordShow">
                                <input type="password" id="password" class="monitor-input2" v-model="ruleForm.password"
                                    placeholder="请输入您的密码" maxlength="20" autocomplete="off">
                            </label>
                            <!-- 验证码 -->
                            <label for="" class="login-yzm" v-if="!ruleForm.passwordShow">
                                <input type="text" name="" class="monitor-input3" v-model="ruleForm.code"
                                    placeholder="请输入您的验证码" maxlength="6" autocomplete="off">
                                <div id="sendYzm" @click="getSendCode"><span>{{ btnText }}</span></div>
                            </label>
                        </div>
                        <div class="login-btn">
                            <a @click="submitForm">登录</a>
                            <a class="gotoCellphone" v-if="!ruleForm.passwordShow" @click="loginSelect">密码登录</a>
                            <a class="gotoCellphone" v-if="ruleForm.passwordShow" @click="loginSelect">验证码登录</a>
                        </div>
                        <div class="new-wx-qqphone">
                            {{ code }}
                            <!-- <p>
                                <a class="js-login-weixin gotologin4-1">
                                    <span class="mobile-registered">该手机号尚未注册，请用快捷方式注册</span>
                                </a>
                            </p>
                            <p>
                                <a href="javascript:;" class="style-contant-qq js-login-qq"></a>
                            </p>
                            <div class="new-wx-tips">快捷登录/注册</div>-->
                        </div>
                    </div>
                </div>
            </div>
            <template #footer>
                <div class="dialog-footer login-style-text">
                    注册和登录即视为您已阅读并同意 <a href="#" rel="nofollow" target="_blank">《KM网用户注册协议》</a>
                </div>
            </template>
        </el-dialog>
        <!-- 登录弹窗 end -->
        <el-dialog v-model="vipDialogVisible" :close-on-press-escape="false" width="950" :close-on-click-modal="false"
            style="border-radius: 16px !important; background: none;">
            <div class="new-vip-index">
                <div class="vip-hd "><!-- super-vip-active -->
                    <div class="hd-left">
                        <img class="user-img"
                            src="https://img.3d66.com/UploadFiles/userHeadImg/20240904/172541294118600.jpeg">
                        <div class="user-info">
                            <div class="user-name">。</div>
                            <div class="user-id">ID: 179161600</div>
                        </div>
                    </div>
                    <ul class="new-vip-tabs">
                        <li class="new-vip-tab active" data-type="1" data-channel="14">素材VIP</li>
                        <li class="new-vip-tab " data-type="2" data-channel="2">全站超级VIP</li>
                    </ul>
                </div>
                <div class="vip-bd ">
                    <div class="bd-left-adv">
                        <!-- 素材广告位 -->
                        <img class="material-left-adv" src="https://img.3d66.com/new-admin/vip/left-material-adv.png"
                            style="display: block;">
                        <!-- 全站vip广告位 -->
                        <img class="whole-left-adv" src="https://img.3d66.com/new-admin/vip/left-whole-adv.png"
                            style="display: none;">
                    </div>
                    <div class="bd-right material-website" data-channel="14" style="display: block;">
                        <ul class="vip-type-tabs">
                            <li class="vip-type-tab active" data-id="10" data-package_dollar="49.00"
                                data-package_user_pay="98.00" data-open_year="1年素材VIP" data-discounts="110"
                                data-purchases_package_id="2571"
                                data-purchases_package_name="1000下载币 + 3张素材打折券 （立省52元起）" data-purchases_money="100"
                                data-purchases_dollar="50">
                                <h3>1年素材VIP</h3>
                                <div class="new-vip-price"><span class="unit">￥</span><span class="price">98</span>
                                </div>
                                <div class="pay-give">
                                    低至0.26元/天
                                </div>
                            </li>
                            <li class="vip-type-tab" data-id="10" data-package_dollar="49.00"
                                data-package_user_pay="98.00" data-open_year="1年素材VIP" data-discounts="110"
                                data-purchases_package_id="2571"
                                data-purchases_package_name="1000下载币 + 3张素材打折券 （立省52元起）" data-purchases_money="100"
                                data-purchases_dollar="50">
                                <h3>1年素材VIP</h3>
                                <div class="new-vip-price"><span class="unit">￥</span><span class="price">98</span>
                                </div>
                                <div class="pay-give">
                                    低至0.26元/天
                                </div>
                            </li>
                            <li class="vip-type-tab" data-id="10" data-package_dollar="49.00"
                                data-package_user_pay="98.00" data-open_year="1年素材VIP" data-discounts="110"
                                data-purchases_package_id="2571"
                                data-purchases_package_name="1000下载币 + 3张素材打折券 （立省52元起）" data-purchases_money="100"
                                data-purchases_dollar="50">
                                <h3>1年素材VIP</h3>
                                <div class="new-vip-price"><span class="unit">￥</span><span class="price">98</span>
                                </div>
                                <div class="pay-give">
                                    低至0.26元/天
                                </div>
                            </li>
                        </ul>
                        <div class="additional-package">
                            <h3>折扣加购</h3>
                            <div class="package-content active">
                                <div class="package-left">
                                    <i class="radio active"></i>
                                    <span class="package-name">1000下载币 + 3张素材打折券 （立省52元起）</span>
                                </div>
                                <div class="package-price">￥100</div>
                            </div>
                        </div>
                        <div class="pay-type-content">
                            <div class="pay-type-box">
                                <ul class="pay-type-list">
                                    <li data-type="0" class="pay-type-item  active" is_union="1">
                                        <div><i class="pay-icon wx-icon"></i></div>
                                        微信
                                    </li>
                                    <li data-type="3" class="pay-type-item">
                                        <div><i class="pay-icon zfb-icon"></i></div>支付宝
                                    </li>
                                    <li data-type="10" class="pay-type-item">
                                        <div><i class="pay-icon xzb-icon"></i></div>下载币支付
                                    </li>
                                </ul>
                                <div class="pay-price-content">
                                    <div class="pay-price-left" style="display: block;">
                                        <div class="qrcode">11</div>

                                    </div>
                                </div>
                                <!-- <div class="pay-price-right">
                                    <div class="pay-price-info">
                                        <span class="pay-price-name">实付：</span>
                                        <span class="pay-price-num"><span class="unit">￥</span><span
                                                class="price">98</span></span>
                                    </div>
                                    <div class="pay-text">使用微信/支付宝扫码支付</div>
                                </div> -->
                                <div class="pay-price-right">
                                    <div class="pay-price-info">
                                        <span class="pay-price-name">实付：</span>
                                        <span class="pay-price-num"><span class="price">980</span><span
                                                class="unit">下载币</span>
                                            <i class="pay-tips">
                                                <div class="tip">“使用下载币支付VIP将无法开具发票”</div>
                                            </i></span>
                                    </div>
                                    <div class="pay-text pay-btn disabled">余额不足</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </el-dialog>
    </div>
</template>
<script lang="ts" setup>
import { ref, reactive, computed } from 'vue'
import { ElMessage } from 'element-plus';
import { doLogin, sendMobileCode } from '../api/home/index'
import { useUserInfo } from '../stores/userInfo'

import eventBus from '../utils/event-bus';
const dialogVisible = ref(false) //登录弹窗
const vipDialogVisible = ref(false) //vip弹窗
const userInfo = useUserInfo() //获取用户信息
interface RuleForm {
    mobile: string
    password: string,
    code: string,
    passwordShow: boolean
}
//表单
const ruleForm = reactive<RuleForm>({
    mobile: '18655112679',
    password: 'Liu123456',
    code: '',
    passwordShow: true
})
const code = ref('')

//登录切换
const loginSelect = () => {
    ruleForm.password = ''
    ruleForm.code = ''
    ruleForm.passwordShow = !ruleForm.passwordShow
}

const totalTime = 60                // 倒计时时间
const countingDown = ref(false)     // 倒计时状态
// 倒计时剩余时间
const remainingTime = reactive({
    seconds: totalTime
})
// 计时器变量
let timer: NodeJS.Timeout | null = null
// 倒计时
const startCountingDown = () => {
    if (!countingDown.value) {
        countingDown.value = true
        remainingTime.seconds = totalTime
    }
    timer = setInterval(() => {
        if (remainingTime.seconds > 0) {
            remainingTime.seconds--
        } else {
            stopCountingDown()
        }
    }, 1000)
}

// 倒计时停止
const stopCountingDown = () => {
    if (timer) {
        clearInterval(timer)
        timer = null
        countingDown.value = false
    }
}

// 按钮文字切换
const btnText = computed(() => (countingDown.value ? remainingTime.seconds + '秒后重发' : "获取验证码"))

//获取验证码
const getSendCode = () => {
    ruleForm.code = '' //设置空
    if (ruleForm.mobile === "") {
        return ElMessage.error('手机号不能为空')
    }
    try {
        sendMobileCode({ mobile: ruleForm.mobile, status: 1 }).then(res => {
            if (res.code == 1) {
                startCountingDown()
                code.value = res.data.list
            } else {
                ElMessage.error(res.msg)
            }
        })
    } catch {
        ElMessage.error('验证码发送失败')
    }
}
//登录事件
const submitForm = () => {
    doLogin({ username: ruleForm.mobile, password: ruleForm.password, code: ruleForm.code, passwordShow: ruleForm.passwordShow }).then(res => {
      if(res.code == 1){
        userInfo.dataFill(res.data.userInfo)
        dialogVisible.value = false
      }else{
        ElMessage.error(res.msg)
      }
    }).catch((error) => {
        ElMessage.error(error.msg)
});
}
//监听头部组件给的弹出指令
eventBus.on('customEvent',(res:any)=>{
    dialogVisible.value = res.dis
})

eventBus.on('openVipCustomEvent',(res:any)=>{
    vipDialogVisible.value = res.dis
})

</script>
<style scoped>
.login {
    width: 460px;
    height: 398px;
    border-radius: 16px;
    background-color: #fff;
}

.three-login .normal {
    box-sizing: border-box;
    height: 398px;
    position: relative;
}

.login .normal {
    width: 460px;
    float: left;
}

.login .normal .login-style {
    padding-top: 16px;
}

.three-login .normal .loginv3-style .login-style-contant {
    margin: 0 auto 15px;
    text-align: center;
}

.three-login .normal .login-style .login-style-contant {

    font-size: 0;
    vertical-align: middle;
}

.code-login {
    min-height: 245px;
}

.code-login .title-applet-code {
    font-size: 20px;
    color: #1D2129;
    font-weight: 600;
    line-height: 23.4px;
    text-align: center;
    margin-top: 33px;
}

.code-login .applet-login-code .applet-code-content {
    position: relative;
    width: 219px;
    height: 219px;
    margin: 20px auto 10px;
}

.code-login .applet-login-code .applet-code-content img {
    width: 100%;
    height: 100%;
}

.code-login .applet-login-code .applet-code-content .v3-black-timeout {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    padding-top: 65px;
    text-align: center;
}

.v3-black-timeout {
    box-sizing: border-box;
}

.v3-black-timeout p {
    font-size: 16px;
    color: #fff;
    line-height: 24px;
}

.v3-black-timeout button {
    width: 80px;
    height: 30px;
    background: #06CD65;
    border-radius: 4px;
    border: none;
    display: block;
    margin: 20px auto 0px;
    font-style: 16px;
    color: #fff;
}

.three-login .normal .login-style .login-style-contant span {
    display: inline-block;
    vertical-align: middle;
    margin: 0px 32px;
    position: relative;
}

.three-login .normal .login-style .login-style-contant span b {
    font-size: 14px;
    color: #4E5969;
    font-weight: normal;
    line-height: 22px;
}

.three-login .normal .login-style .login-style-contant span em {
    font-style: normal;
    font-size: 12px;
    color: #C9CDD4;
    display: none;
    width: 123px;
    height: 34px;
    text-align: center;
    box-sizing: border-box;
}

.three-login .normal .login-style .login-style-contant span a.style-contant-qq {
    background: url(https://static.3d66.com/user/images/new_login/icon-login.png) -78px -10px;
}

.three-login .normal .login-style .login-style-contant span a {
    display: block;
    width: 48px;
    height: 48px;
    cursor: pointer;
    margin: 14px auto 8px;
    border-radius: 6px 6px 6px 6px;
    border: 1px solid #E5E6EB;
}

.three-login .normal .loginv3-style .login-style-contant {
    margin: 0 auto 15px;
    text-align: center;
}

.login .normal .login-style .login-style-text {
    font-size: 12px;
    color: #86909C;
    position: absolute;
    bottom: 16px;
    right: 0px;
    left: 0;
    text-align: center;
    line-height: 18px;
}

.demo-tabs>.el-tabs__content {
    padding: 32px;
    color: #6b778c;
    font-size: 32px;
    font-weight: 600;
}

.custom-dialog .el-dialog {
    border-radius: 16px;
    /* 设置你想要的border-radius值 */
}

.login .normal .normal-login {
    display: block;
    margin: 0 auto;
    width: 358px;
}

.login .normal .normal-login .tab-normal-mode {
    padding-top: 35px;
    margin-bottom: 32px;
}

.login .normal .normal-login .tab-normal-mode a {
    font-size: 18px;
    line-height: 1;
    color: #86909C;
    float: left;
    margin-right: 24px;
    padding-bottom: 7px;
    position: relative;
}

.login .normal .normal-login .tab-normal-mode a.active {
    font-weight: bold;
    color: #1D2129;
}

.login-from {
    position: relative;
}

.login .normal .normal-login .login-from label {
    width: 358px;
    height: 40px;
    border-bottom: 1px solid #E7E7E9;
    display: block;
    margin-bottom: 20px;
}

.login-from em {
    width: 1px;
    height: 13px;
    background-color: #D5D5D5;
    display: block;
    position: absolute;
    top: 14px;
    left: 103px;
    z-index: 100;
}

.intl-tel-input {
    position: relative;
    display: inline-block;
}

.login .normal .normal-login .login-from .area-code-prompt {
    position: absolute;
    right: 0;
    top: 11px;
    background: #fff;
    padding-left: 10px;
    font-size: 12px;
    color: #F53F3F;
    font-weight: 400;
}

.login .normal .normal-login .login-from label input {
    border: none;
    background: none;
    width: 358px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
}

.login .normal .normal-login .login-from .login-yzm #sendYzm {
    display: block;
    border-radius: 4px;
    width: 84px;
    height: 24px;
    background: #F2F3F5;
    line-height: 24px;
    font-size: 12px;
    color: #4E5969;
    text-align: center;
    position: absolute;
    /* top: 50%;
    margin-top: -13px; */
    top: 80%;
    margin-top: -13px;
    right: 0;
    cursor: pointer;
}

.login .normal .normal-login .login-btn {
    height: 81px;
    margin-bottom: 24px;
}

.login .normal .normal-login .login-btn a {
    width: 358px;
    height: 34px;
    background-color: #7CF2A9;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    line-height: 34px;
    color: #fff;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

.login .normal .normal-login .login-btn a.gotoCellphone {
    background: #F2F3F5;
    font-size: 14px;
    color: #4E5969;
    margin-top: 13px;
}

.login .normal .normal-login .tab-normal-mode a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #06CD65;
}

.login-style-text {
    font-size: 12px;
    color: #86909C;
    text-align: center;
    width: 100%;
    line-height: 23px;
}

.login-style-text a {
    color: #06CD65;
}

.login .normal .normal-login .new-wx-qqphone {
    text-align: center;
    margin-bottom: 220px;
}

.login .normal .normal-login .new-wx-qqphone p {
    display: inline-block;
}

.login .normal .normal-login .new-wx-qqphone .new-wx-tips {
    margin-top: 4px;
    font-size: 12px;
    color: #86909C;
    line-height: 22px;
}

.new-vip-index {
    width: 900px;
    height: 593px;
    border-radius: 16px;
    background: #fff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.new-vip-index .vip-hd {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 900px;
    height: 92px;
    background: url(https://img.3d66.com/new-admin/vip/20240718/new-vip-icon.png) -10px -256px no-repeat;
}

.new-vip-index .vip-hd .hd-left {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 24px 0 24px 20px;
    width: 240px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.new-vip-index .vip-hd .hd-left .user-img {
    margin-right: 10px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    background: #d7d7d7;
    border-radius: 50%;
    border: 1px solid #E0985D;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.new-vip-index .vip-hd .hd-left .user-info .user-name {
    font-size: 14px;
    color: #772917;
    line-height: 1;
    height: 14px;
    width: 175px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-vip-index .vip-hd .hd-left .user-info .user-id {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(119, 41, 23, .4);
}

.new-vip-index .vip-hd .new-vip-tabs {
    display: -ms-flexbox;
    display: flex;
    padding-top: 46px;
    box-sizing: border-box;
}

.new-vip-index .vip-hd .new-vip-tabs .new-vip-tab.active {
    margin-top: -6px;
    font-size: 16px;
    color: #6E4110;
}

.new-vip-index .vip-hd .new-vip-tabs .new-vip-tab:nth-child(1) {
    padding-left: 21px;
}

.new-vip-index .vip-hd .new-vip-tabs .new-vip-tab {
    margin-top: -1px;
    width: 330px;
    height: 51px;
    line-height: 51px;
    font-size: 16px;
    color: #6E400F;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.new-vip-index .vip-hd.super-vip-active {
    background-position: -10px -144px;
}

.new-vip-index .vip-bd .bd-left-adv {
    margin-right: 20px;
}

.new-vip-index .vip-bd .bd-left-adv>img {
    width: 230px;
    height: 457px;
    border-radius: 12px;
    background: #f7f7f7;
    cursor: pointer;
}

.new-vip-index .vip-bd {
    display: -ms-flexbox;
    display: flex;
    padding: 20px;
    box-sizing: border-box;
}

.new-vip-index .vip-bd .bd-right .vip-type-tabs {
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 9px;
}

.new-vip-index .vip-bd .bd-right .vip-type-tabs .vip-type-tab.active {
    width: 197px;
    height: 153px;
    background: url(https://img.3d66.com/new-admin/vip/20240718/new-vip-icon.png) -11px -369px no-repeat;
    border-color: transparent;
}

.new-vip-index .vip-bd .bd-right .vip-type-tabs .vip-type-tab {
    margin-right: 10px;
    padding: 24px 0;
    width: 197px;
    height: 146px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #F1F1F1;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    cursor: pointer;
}

.new-vip-index .vip-bd .bd-right .vip-type-tabs .vip-type-tab>h3 {
    margin-bottom: 13px;
    font-size: 16px;
    color: #222;
    line-height: 1;
    height: 15px;
}

.new-vip-index .vip-bd .bd-right .vip-type-tabs .vip-type-tab.active .new-vip-price {
    color: #FF5432;
}

.new-vip-index .vip-bd .bd-right .vip-type-tabs .vip-type-tab .new-vip-price {
    margin-bottom: 18px;
    font-size: 36px;
    color: #772917;
    line-height: 1;
    font-weight: 700;
    height: 29px;
}

.new-vip-index .vip-bd .bd-right .vip-type-tabs .vip-type-tab .new-vip-price .unit {
    font-size: 16px;
}

.new-vip-index .vip-bd .bd-right .vip-type-tabs .vip-type-tab.active .pay-give {
    color: #BB8E59;
    background-color: #FFDFAE;
}

.new-vip-index .vip-bd .bd-right .vip-type-tabs .vip-type-tab .pay-give {
    display: inline-block;
    margin: 0 auto;
    padding: 0 8px;
    height: 22px;
    line-height: 22px;
    font-size: 12px;
    color: #CDA16D;
    border-radius: 11px;
    background: #fff2de;
}

.new-vip-index .vip-bd .bd-right .additional-package {
    padding: 12px;
    width: 610px;
    height: 79px;
    border-radius: 12px;
    background: #f8f8f8;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.new-vip-index .vip-bd .bd-right .additional-package>h3 {
    margin-bottom: 8px;
    font-size: 12px;
    color: #222;
    line-height: 1;
    font-weight: 700;
}

.new-vip-index .vip-bd .bd-right .additional-package .package-content.active {
    background: -webkit-gradient(linear, left top, right top, from(#FFFBF1), to(#FFEFD6));
    background: linear-gradient(-270deg, #FFFBF1, #FFEFD6);
    border-color: #E0985D
}

.new-vip-index .vip-bd .bd-right .additional-package .package-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 12px;
    width: 392px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #EEE;
    background-color: #FFF;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    cursor: pointer
}

.new-vip-index .vip-bd .bd-right .additional-package .package-content .package-left {
    font-size: 12px;
    color: #666
}

.new-vip-index .vip-bd .bd-right .additional-package .package-content.active .package-left .radio {
    border-color: #FF5D32
}

.new-vip-index .vip-bd .bd-right .additional-package .package-content .package-left .radio {
    display: inline-block;
    position: relative;
    margin-right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    vertical-align: -3px;
    border: 1px solid #D5D5D5;
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

.new-vip-index .vip-bd .bd-right .additional-package .package-content.active .package-left .radio::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 2px;
    width: 11px;
    height: 8px;
    background: url(https://img.3d66.com/new-admin/vip/20240718/new-vip-icon.png) -517px -368px no-repeat
}

.new-vip-index .vip-hd .new-vip-tabs .new-vip-tab.active {
    margin-top: -6px;
    font-size: 16px;
    color: #6E4110
}

.new-vip-index .vip-bd .bd-right .additional-package .package-content.active .package-price,
.new-vip-index .vip-bd .bd-right .vip-type-tabs .vip-type-tab.active .new-vip-price {
    color: #FF5432
}

.new-vip-index .vip-bd .bd-right .pay-type-content {
    position: relative;
    margin-top: 16px;
    padding: 0 12px;
    width: 610px;
    height: 200px;
    border-radius: 12px;
    background: #f8f8f8;
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 12px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-content .pay-price-left {
    display: none;
    position: relative;
    margin-right: 24px;
    padding: 10px;
    width: 134px;
    height: 134px;
    border-radius: 4px;
    background: #fff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-content .pay-price-left .qrcode {
    width: 114px;
    height: 114px
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-content .pay-price-left .expire-pay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    cursor: pointer;
    background-color: rgba(0, 0, 0, .8)
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-content .pay-price-left .expire-pay i {
    background: url(/act/html/act-20200725/img/refresh.png) center no-repeat;
    width: 30px;
    height: 30px;
    background-size: cover;
    cursor: pointer;
    margin: 20px auto 15px;
    display: block
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-content .pay-price-left .expire-pay span {
    color: #fff;
    font-size: 12px;
    line-height: 18px
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-content .pay-price-left .pay-loadding {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #efefef;
    padding-top: 35px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-content .pay-price-left .pay-loadding span {
    background: url(/act/images/global-act-pay/loading.png) center no-repeat;
    width: 32px;
    height: 32px;
    display: block;
    margin: 0 auto 20px;
    -webkit-animation: iconfont 1.8s linear infinite;
    animation: iconfont 1.8s linear infinite
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-content .pay-price-left .pay-loadding em {
    display: block;
    font-size: 12px;
    line-height: 12px;
    width: 100%;
    text-align: center;
    color: #999
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-type-list {
    margin-right: 24px;
    border: 1px solid #E8E8E8;
    border-radius: 4px
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-type-list .pay-type-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 147px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: #666;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #E8E8E8;
    cursor: pointer
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-type-list .pay-type-item>div {
    width: 48px;
    text-align: right;
    margin-right: 6px
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-type-list .pay-type-item:last-child {
    border-bottom: none;
    border-radius: 0 0 4px 4px
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-type-list .pay-type-item:nth-child(1) {
    border-radius: 4px 4px 0 0
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-type-list .pay-type-item:nth-child(1) .zfb-icon {
    margin-left: 4px
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-type-list .pay-type-item.active {
    position: relative;
    color: #222;
    font-weight: 700;
    background: #e7e7e7
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-type-list .pay-type-item.active::after {
    content: "";
    position: absolute;
    right: -16px;
    top: 50%;
    margin-top: -8px;
    border: 8px solid transparent;
    border-left-color: #e7e7e7
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-type-list .pay-type-item .pay-icon {
    display: inline-block;
    vertical-align: -3px
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-type-list .pay-type-item .wx-icon {
    width: 18px;
    height: 14px;
    background: url(https://img.3d66.com/new-admin/vip/20240718/new-vip-icon.png) -377px -368px no-repeat
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-type-list .pay-type-item .zfb-icon {
    width: 14px;
    height: 15px;
    background: url(https://img.3d66.com/new-admin/vip/20240718/new-vip-icon.png) -261px -408px no-repeat
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-type-list .pay-type-item .paypal-icon {
    width: 14px;
    height: 16px;
    background: url(https://img.3d66.com/new-admin/vip/20240718/new-vip-icon.png) -227px -408px no-repeat
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-type-list .pay-type-item .xzb-icon {
    width: 18px;
    height: 18px;
    background: url(https://img.3d66.com/new-admin/vip/20240718/new-vip-icon.png) -267px -368px no-repeat;
    vertical-align: -5px
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-info .pay-price-name {
    margin-right: -8px;
    font-size: 14px;
    color: #222;
    font-weight: 700
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-info .price {
    margin-right: 6px;
    font-size: 36px;
    color: #FF5D32;
    font-weight: 700;
    line-height: 1
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-info .unit {
    font-size: 14px;
    font-weight: 700;
    color: #FF5D32
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-info .pay-tips {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 16px;
    background: url(https://img.3d66.com/new-admin/vip/20240718/new-vip-icon.png) -305px -368px no-repeat;
    vertical-align: -2px
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-info .pay-tips:hover {
    background-position: -341px -368px
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-info .pay-tips:hover .tip {
    opacity: 1;
    visibility: visible;
    -webkit-transition: all .4s;
    transition: all .4s
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-info .pay-tips .tip {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 26px;
    left: 50%;
    margin-left: -107px;
    width: 215px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    font-size: 12px;
    color: #FFF;
    background: #222;
    border-radius: 4px
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-price-info .pay-tips .tip::after {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-bottom-color: #222
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-text {
    margin-top: 12px;
    color: #999;
    font-size: 12px
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .pay-btn {
    margin-top: 15px;
    width: 126px;
    font-size: 14px;
    color: #FFF;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 4px;
    background: #ff5d32;
    cursor: pointer
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .disabled {
    color: #9D9C9C;
    background: #E0E0E0;
    cursor: not-allowed
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .loading-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 999
}

.new-vip-index .vip-bd .bd-right .pay-type-content .pay-type-box .loading-box::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 90px;
    height: 70px;
    background: url(/act/images/global-act-pay/loading.gif) center no-repeat;
    background-size: 100% 100%
}</style>